﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyGrouping.UrlTree
{
    public class Leaf : UrlNode
    {
        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        private int high;

        public int High
        {
            get { return high; }
            set { high = value; }
        }
        
        public Leaf (string _name, int _id) : base(_name)
        {
            id = _id;
            high = 0;
        }

        public override bool IsLeaf()
        {
            return true;
        }

        public override bool IsSingleAncestor()
        {
            return false;
        }

        public override bool IsSingleDad()
        {
            return false;
        }
    }
}
